##################################################
##
## Create Date:   Dec 11th, 2007
## Author     :   dragon xiao
## Modify Date:   May 5th, 2008
##
##################################################
CC = g++
INCLUDE += -I ../include -I/usr/local/include
CFLAGS += `wx-config --cflags`  -W -O2
LIBS += `wx-config --libs adv,html,xml,media,xrc,core,net,base` -lsupc++

OBJ = $(target).o icon.o xml.o process.o

target = dolphin

VPATH = ../include

.SUFFIXES:	.o .cpp

.cpp.o:
	$(CC) $(INCLUDE) -c $(CFLAGS) -o $@ $<

all:	$(target) 

$(target):	$(OBJ)
	$(CC) -o $(target) $(OBJ) $(LIBS)

	mv $(target) ../
clean:
	rm -rf *.o *~ ../$(target) ../include/xr.h ../include/*~
